package edu.neusoft.kongfanfei317.yuejian1.model;


import edu.neusoft.kongfanfei317.yuejian1.bean.LoginBean;
import edu.neusoft.kongfanfei317.yuejian1.iface.LoginIface;
import edu.neusoft.kongfanfei317.yuejian1.listener.TListener;
import edu.neusoft.kongfanfei317.yuejian1.service.Service;
import retrofit2.Call;
import retrofit2.Retrofit;


public class LoginModel extends RetrofitBaseModel implements LoginIface<LoginBean>{

    private Retrofit retrofit;
    Service service;
    public LoginModel(){
        retrofit = getRetrofit();
    }
    public void getResult(String username, String userpass, final TListener<LoginBean> tListener) {
        service=getService();
        Call<LoginBean> call = service.getlogin(username, userpass);

        callenqueue(call,tListener);
    }
}